# -*- coding: utf-8 -*-
# @Time: 2022/10/31 19:11
# @Author: 后来没有来
# @Email: panyi_20210601@163.com
# @File: 注册发送短信.py
# @Project: haixin
# @Software: PyCharm


from test_case.haixin.Method.Post import post_method
import random

def sendRegisterCodeSms():
    """
    注册发送短信验证码
    :return:
    """

    url = "https://api-sit.shwoody.com/V2/ma/chiobeansOrder/sendRegisterCodeSms"  # v1没有这个接口

    data = {
        "userMobile": "189"+str(random.randint(1000, 9990))+str(random.randint(1000, 9999))  # 1541975756513873920  test：1532568881774858240 本人 pre:1509864748823482368
    }
    response = post_method(data, url)
    print(data["userMobile"])
    print("接口响应数据：" + str(response))


if __name__ == "__main__":
    sendRegisterCodeSms()
